#!/usr/bin/python
#coding=utf-8

from __future__ import division, print_function
import os
from math import sqrt

buco = 9 
file_name = 'raw/{0}buchi.txt'.format(buco)
ifile = open(file_name)
ofile = open('mm_V_mmerr_Verr.{0}.0.dat'.format(buco*25), 'w')
for line in ifile:
    [mm, V] = line.split()
    line = '{0}\t{1}\t{2:0}\t{3:0}\n'.format(mm, V, 0.01/sqrt(12), 0.01/sqrt(12))
    ofile.write(line)

ifile.close()
ofile.close()
